package com.lcb.dubbo;

import com.lcb.client.User;
import com.lcb.client.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringClient {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("consumer.xml");
        UserService userService = (UserService) context.getBean("userService");
        User user = userService.getUser(1);

        System.out.println(user);
    }
}
